home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / complib / cgtcon.z / cgtcon
Text File  |  1998-10-30  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCGGGGTTTTCCCCOOOONNNN((((3333FFFF))))                                                          CCCCGGGGTTTTCCCCOOOONNNN((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CGTCON - estimate the reciprocal of the condition number of a complex
  10.      tridiagonal matrix A using the LU factorization as computed by CGTTRF
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE CGTCON( NORM, N, DL, D, DU, DU2, IPIV, ANORM, RCOND, WORK,
  14.                         INFO )
  15.  
  16.          CHARACTER      NORM
  17.  
  18.          INTEGER        INFO, N
  19.  
  20.          REAL           ANORM, RCOND
  21.  
  22.          INTEGER        IPIV( * )
  23.  
  24.          COMPLEX        D( * ), DL( * ), DU( * ), DU2( * ), WORK( * )
  25.  
  26. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  27.      CGTCON estimates the reciprocal of the condition number of a complex
  28.      tridiagonal matrix A using the LU factorization as computed by CGTTRF.
  29.  
  30.      An estimate is obtained for norm(inv(A)), and the reciprocal of the
  31.      condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))).
  32.  
  33.  
  34. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  35.      NORM    (input) CHARACTER*1
  36.              Specifies whether the 1-norm condition number or the infinity-
  37.              norm condition number is required:
  38.              = '1' or 'O':  1-norm;
  39.              = 'I':         Infinity-norm.
  40.  
  41.      N       (input) INTEGER
  42.              The order of the matrix A.  N >= 0.
  43.  
  44.      DL      (input) COMPLEX array, dimension (N-1)
  45.              The (n-1) multipliers that define the matrix L from the LU
  46.              factorization of A as computed by CGTTRF.
  47.  
  48.      D       (input) COMPLEX array, dimension (N)
  49.              The n diagonal elements of the upper triangular matrix U from the
  50.              LU factorization of A.
  51.  
  52.      DU      (input) COMPLEX array, dimension (N-1)
  53.              The (n-1) elements of the first superdiagonal of U.
  54.  
  55.      DU2     (input) COMPLEX array, dimension (N-2)
  56.              The (n-2) elements of the second superdiagonal of U.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCGGGGTTTTCCCCOOOONNNN((((3333FFFF))))                                                          CCCCGGGGTTTTCCCCOOOONNNN((((3333FFFF))))
  71.  
  72.  
  73.  
  74.      IPIV    (input) INTEGER array, dimension (N)
  75.              The pivot indices; for 1 <= i <= n, row i of the matrix was
  76.              interchanged with row IPIV(i).  IPIV(i) will always be either i
  77.              or i+1; IPIV(i) = i indicates a row interchange was not required.
  78.  
  79.      ANORM   (input) REAL
  80.              If NORM = '1' or 'O', the 1-norm of the original matrix A.  If
  81.              NORM = 'I', the infinity-norm of the original matrix A.
  82.  
  83.      RCOND   (output) REAL
  84.              The reciprocal of the condition number of the matrix A, computed
  85.              as RCOND = 1/(ANORM * AINVNM), where AINVNM is an estimate of the
  86.              1-norm of inv(A) computed in this routine.
  87.  
  88.      WORK    (workspace) COMPLEX array, dimension (2*N)
  89.  
  90.      INFO    (output) INTEGER
  91.              = 0:  successful exit
  92.              < 0:  if INFO = -i, the i-th argument had an illegal value
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.